package com.ciwong.epaper.modules.scan.bean;

import java.io.Serializable;

/**
 * 答题卡
 * Answer Card Created by res-zwyan on 2015/8/3.
 */
public class AnswerCard implements Serializable
{
    /**
     * answerCard local path
     */
    private String content = "";

    private String answerCardName = "";

    /**
     * four point coordinate
     */
    private float[][] location;

    public String getContenet()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public float[][] getLocation()
    {
        return location;
    }

    public void setLocation(float[][] location)
    {
        this.location = location;
    }

    public String getAnswerCardName()
    {
        return answerCardName;
    }

    public void setAnswerCardName(String answerCardName)
    {
        this.answerCardName = answerCardName;
    }

    @Override
    public boolean equals(Object o)
    {
        if (o == null || !(o instanceof String))
        {
            return false;
        }
        String t = (String) o;
        if (t.equals(content))
        {
            return true;
        }
        return false;
    }

    @Override
    public String toString()
    {
        return content;
    }

    @Override
    public AnswerCard clone()
    {
        AnswerCard answerCard = new AnswerCard();
        answerCard.setAnswerCardName(answerCardName);
        answerCard.setContent(content);
        answerCard.setLocation(location);
        return answerCard;
    }
}
